package com.aier.school.entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * SchoolHoliday entity. @author MyEclipse Persistence Tools
 */

@SuppressWarnings("serial")
public class SchoolHoliday implements java.io.Serializable {

    // Fields

    private Long hid;
    private Date sdate;
    private Date edate;
    private Integer sid;
    private String desinfo;
    private String sdate_str;
    private String edate_str;
    
    // Constructors

    /** default constructor */
    public SchoolHoliday() {
    }

    /** minimal constructor */
    public SchoolHoliday(Date sdate, Date edate) {
        this.sdate = sdate;
        this.edate = edate;
    }

    /** full constructor */
    public SchoolHoliday(Date sdate, Date edate, Integer sid) {
        this.sdate = sdate;
        this.edate = edate;
        this.sid = sid;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "hid", unique = true, nullable = false)
    public Long getHid() {
        return this.hid;
    }

    public void setHid(Long hid) {
        this.hid = hid;
    }
    @Column(name = "sdate", nullable = false)
    public Date getSdate() {
        return this.sdate;
    }

    public void setSdate(Date sdate) {
        this.sdate = sdate;
    }
    @Column(name = "edate", nullable = false)
    public Date getEdate() {
        return this.edate;
    }

    public void setEdate(Date edate) {
        this.edate = edate;
    }
    @Column(name = "sid", nullable = true)
    public Integer getSid() {
        return this.sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }



    public String getSdate_str() {
        return sdate_str;
    }

    public void setSdate_str(String sdate_str) {
        this.sdate_str = sdate_str;
    }

    public String getEdate_str() {
        return edate_str;
    }

    public void setEdate_str(String edate_str) {
        this.edate_str = edate_str;
    }

    public String getDesinfo() {
        return desinfo;
    }

    public void setDesinfo(String desinfo) {
        this.desinfo = desinfo;
    }

    
}